package com.luoxue.config;

import com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;


@Configuration
public class SqlMapperConfig {

    @Value("${spring.profiles.active}")
    private String profilesActive;

    @Bean
    public SqlMapper sqlMapper(SqlSession sqlSession) {
        return new SqlMapper(sqlSession,profilesActive);
    }
}
